package org.rendao.biz.model;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import org.rendao.jaxb.dapter.DefaultDateTimeAdapter;

@XmlRootElement(name = "question")
@XmlAccessorType(XmlAccessType.FIELD)
public class Question {
	@XmlElement
	private String id;
	
	@XmlElement
	private String firstIndexId;
	
	@XmlElement
	private String secondIndexId;
	
	@XmlElement
	private String userId;
	
	@XmlElement
	private String question;

	@XmlElement
	private String answer;
	
	@XmlElement
	private String status;
	
	@XmlElement
	@XmlJavaTypeAdapter(DefaultDateTimeAdapter.class)
	private Date receivedDate;

	@XmlElement
	private String isDeleted;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFirstIndexId() {
		return firstIndexId;
	}

	public void setFirstIndexId(String firstIndexId) {
		this.firstIndexId = firstIndexId;
	}

	public String getSecondIndexId() {
		return secondIndexId;
	}

	public void setSecondIndexId(String secondIndexId) {
		this.secondIndexId = secondIndexId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getReceivedDate() {
		return receivedDate;
	}

	public void setReceivedDate(Date receivedDate) {
		this.receivedDate = receivedDate;
	}
	
	public String getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(String isDeleted) {
		this.isDeleted = isDeleted;
	}
}
